import sys

import akshare as ak




def stock_zh_a_daily_hfq_df(code):
    stock_zh_a_daily_hfq_df = ak.stock_zh_a_daily(symbol=code, adjust="qfq")
    for indexs in stock_zh_a_daily_hfq_df.index:
        s = ''
        index = stock_zh_a_daily_hfq_df.loc[indexs]
        for i in range(index.size):
            s = s + str(index[i])
            if i != index.size - 1:
                s = s + ","
        print(s)



if __name__ == '__main__':
    for i in range(1, len(sys.argv)):
        url = sys.argv[i]
        stock_zh_a_daily_hfq_df(url)
